package com.zbf.service.provider;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cloud.client.discovery.DiscoveryClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;
import javax.websocket.server.PathParam;

/**
 * 作者：LCG
 * 创建时间：2019/3/16 21:33
 * 描述：Eureka的测试端
 */
@RestController
public class TestEurekaServerController {

    @RequestMapping("/test01")
    public String test1(HttpServletRequest request, @RequestParam(name="string",required = false) String string){
        System.out.println ("=========server========="+string);
        /*try {
            Thread.sleep ( 10000 );
        } catch (InterruptedException e) {
            e.printStackTrace ();
        }*/
        return "this is server return";
    }

    @RequestMapping("test11")
    public String test11(HttpServletRequest request, @RequestParam("string") String string){
        System.out.println ("=========server=11========"+string);
        /*try {
            Thread.sleep ( 10000 );
        } catch (InterruptedException e) {
            e.printStackTrace ();
        }*/
        return "this is server return11";
    }

}
